package com.wswy.wzcx.model.license;

import android.os.Parcel;
import android.os.Parcelable.Creator;

public class ExtraError implements android.os.Parcelable {

  public int exceptionCode;
  public String errorMsg;

  @Override
  public int describeContents() {
    return 0;
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.exceptionCode);
    dest.writeString(this.errorMsg);
  }

  public ExtraError() {
  }

  protected ExtraError(Parcel in) {
    this.exceptionCode = in.readInt();
    this.errorMsg = in.readString();
  }

  public static final Creator<ExtraError> CREATOR = new Creator<ExtraError>() {
    @Override
    public ExtraError createFromParcel(Parcel source) {
      return new ExtraError(source);
    }

    @Override
    public ExtraError[] newArray(int size) {
      return new ExtraError[size];
    }
  };
}
